package test.orm;
import static org.junit.Assert.*;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import xm.web.bean.User;
import xm.web.orm.DBhelp;
public class tedbhelp {

	@Before
	public void setUp() throws Exception {
	}

	@After
	public void tearDown() throws Exception {
	}

	@Test
	public void test() {
		  DBhelp db=new DBhelp();
		  db.getAll();
		  db.insert(new User(0, "Male", 14));
		  db.getAll();
		  db.insert(new User(0, "tutu", 14));
		  db.getAll();
		  db.update(new User(1, "", 7));
		  db.getAll();
		  db.delete("Male");
		  db.getAll();
		  db.delete("tutu");
		  db.getAll();
		  db.getOne(2);
	}
}
	


